﻿@model IEnumerable<Infrastructure.Models.ControllerData>
@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body>
    <div class="container">      
        <div class="row">
            <div class="col">  
                <div class="alert alert-primary" role="alert">
                    所有操作链接
                </div>
                <table class="table">
                    <thead>
                    <tr>
                        <th scope="col">地址</th>
                        <th scope="col">操作</th>
                        <th scope="col">控制器</th>
                        <th scope="col">区域</th>
                        <th scope="col">链接</th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach (var item in Model)
                    {
                        @foreach (var i in item.Actions)
                         {
                             <tr>
                                 <th scope="row">@Url.Action(i.Name, item.ControllerName, new {area = item.AreaName})</th>
                                 <td>@i.Name</td>
                                 <td>@item.ControllerName</td>
                                 <td>@item.AreaName</td>
                                 <td><a target="_blank" asp-action="@i.Name" asp-area="@item.AreaName" asp-controller="@item.ControllerName">跳转</a></td>
                             </tr>
                         }
                    }
                    </tbody>
                </table>
            </div>
        </div>

        
            
        
    </div>
</body>
</html>